package com.chengxiaoxiao.libarypartner.utils;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.Handler;

public class LoadDialogUtils {

	private static ProgressDialog dialog;
	public static void show(Context cxt,String title,String content)
	{
		dialog =ProgressDialog.show(cxt, title, content);
	}
	private static Handler mHandler=new Handler();
	public static void hidden()
	{
		 // Stops scanning after a pre-defined scan period.  
        mHandler.postDelayed(new Runnable() {  
            @Override  
            public void run() {  
            	if(dialog!=null)
        		{
        			dialog.dismiss();
        		}
            }  
        }, 500);
		
		
	}
}
